// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_INV_STG_HIS
// * CreateDate    : 2014-06-05 18:30:11
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:30:11
// * LastChanger   : 2014-06-05 18:30:11
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
  	[Serializable]
    public partial class InvStgHisTable : TableInfo
    {
		public const string C_TableName = "INV_STG_HIS";
		
		public const string C_ID = "ID";
		public const string C_PRODUCT_ID = "PRODUCT_ID";
		public const string C_TYPE = "TYPE";
		public const string C_RELATED_ID = "RELATED_ID";
		public const string C_LOCATION_ID = "LOCATION_ID";
		public const string C_QTY_IN = "QTY_IN";
		public const string C_QTY_OUT = "QTY_OUT";
		public const string C_CREATED_BY = "CREATED_BY";
		public const string C_CREATED_DATE = "CREATED_DATE";
		
		public InvStgHisTable()
        {
            _tableName = "INV_STG_HIS";
        }
		
		protected static InvStgHisTable _current;
        public static InvStgHisTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }
		
		private static void Initial()
        {
            _current = new InvStgHisTable();

            _current.Add(C_ID, new ColumnInfo(C_ID,"Id", true, typeof(string)));
            _current.Add(C_PRODUCT_ID, new ColumnInfo(C_PRODUCT_ID,"ProductId", false, typeof(string)));
            _current.Add(C_TYPE, new ColumnInfo(C_TYPE,"Type", false, typeof(int)));
            _current.Add(C_RELATED_ID, new ColumnInfo(C_RELATED_ID,"RelatedId", false, typeof(string)));
            _current.Add(C_LOCATION_ID, new ColumnInfo(C_LOCATION_ID,"LocationId", false, typeof(string)));
            _current.Add(C_QTY_IN, new ColumnInfo(C_QTY_IN,"QtyIn", false, typeof(decimal)));
            _current.Add(C_QTY_OUT, new ColumnInfo(C_QTY_OUT,"QtyOut", false, typeof(decimal)));
            _current.Add(C_CREATED_BY, new ColumnInfo(C_CREATED_BY,"CreatedBy", false, typeof(string)));
            _current.Add(C_CREATED_DATE, new ColumnInfo(C_CREATED_DATE,"CreatedDate", false, typeof(DateTime)));
			
		}
		
		public ColumnInfo ID
        {
            get { return this[C_ID]; }
        }
		
		public ColumnInfo PRODUCT_ID
        {
            get { return this[C_PRODUCT_ID]; }
        }
		
		public ColumnInfo TYPE
        {
            get { return this[C_TYPE]; }
        }
		
		public ColumnInfo RELATED_ID
        {
            get { return this[C_RELATED_ID]; }
        }
		
		public ColumnInfo LOCATION_ID
        {
            get { return this[C_LOCATION_ID]; }
        }
		
		public ColumnInfo QTY_IN
        {
            get { return this[C_QTY_IN]; }
        }
		
		public ColumnInfo QTY_OUT
        {
            get { return this[C_QTY_OUT]; }
        }
		
		public ColumnInfo CREATED_BY
        {
            get { return this[C_CREATED_BY]; }
        }
		
		public ColumnInfo CREATED_DATE
        {
            get { return this[C_CREATED_DATE]; }
        }
		
		
		
	}
}

